package com.ccb.sc.common.modules.goods.vo;

import com.ccb.sc.common.bind.vo.KeyValueIconVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CategoryTreeVo extends KeyValueIconVo {

    private List<CategoryTreeVo> children = new ArrayList<>();

    public boolean isHasChildren() {
        return !getChildren().isEmpty();
    }
}
